<?php /* Smarty version Smarty-3.0.8, created on 2012-10-12 20:03:14
         compiled from "G:\xampp\htdocs\gy78/template\admin/page_write.html" */ ?>
<?php /*%%SmartyHeaderCode:249445072dd9760b522-60704642%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '87c3e009fa367bc28be5d80097a516e13c733d05' => 
    array (
      0 => 'G:\\xampp\\htdocs\\gy78/template\\admin/page_write.html',
      1 => 1349620736,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '249445072dd9760b522-60704642',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'G:\xampp\htdocs\gy78\SpeedPHP\Drivers\Smarty\plugins\modifier.date_format.php';
?><!DOCTYPE html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php echo $_smarty_tpl->getVariable('tpl_title')->value;?>
 - <?php echo @VE_NAME;?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta name="author" content="jiayan41@163.com,贾彦,www.vecms.com" />
	<link rel="stylesheet" href="/resources/css/style.css" type="text/css" media="screen" />
	<script type="text/javascript" src="/resources/scripts/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="/resources/scripts/simpla.jquery.configuration.js"></script>
	<script type="text/javascript" src="/resources/scripts/facebox.js"></script>
</head>
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
	<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

			<!-- Logo (221px wide) -->
			<div  id="controltitle"><a href="#">后台管理</a></div>

			<!-- Sidebar Profile links -->
			<div id="profile-links">
				您好，<u><?php echo $_SESSION['userinfo']['screenName'];?>
</u> ，<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_SESSION['userinfo']['uid']),$_smarty_tpl);?>
">修改密码</a>？<br />
				<br />
				<a href="/" title="View the Site">浏览网站</a> | <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'logout'),$_smarty_tpl);?>
" title="Sign Out">退出</a>
			</div>	<script charset="utf-8" src="/resources/kindeditor/kindeditor-min.js"></script>
	<script charset="utf-8" src="/resources/kindeditor/lang/zh_CN.js"></script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="text"]', {
					allowFileManager : true
				});
				
			});		

			$(document).ready(function(){ // 当页面加载完毕的时候	

				$('#slug').blur(function(){ // “检查用户名重复”的按钮被点击
					// 由于需要JSON数据，所以使用$.getJSON
					$.getJSON("<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'check'),$_smarty_tpl);?>
", { 'slug': $('#slug').val() }, function(json){
						// 这里是返回的数据，json变量就是json格式的数据，可以直接使用
						//alert("JSON 结果: " + json.status); // 使用json.status，对应myajax/check中的$result['status']
						$('#exresult').html(json.message); // 使用json.message，对应myajax/check中的$result['message']
					}); 
				});

			});	
	</script>
			
			<ul id="main-nav">  <!-- Accordion Menu -->
				
				<li>
					<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'index'),$_smarty_tpl);?>
" class="nav-top-item no-submenu">控制面板</a>       
				</li>
				
				<li> 
					<a href="#" class="nav-top-item">文章</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'write'),$_smarty_tpl);?>
">撰写新文章</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'index'),$_smarty_tpl);?>
">文章管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'category','a'=>'index'),$_smarty_tpl);?>
">分类管理</a></li>
					</ul>
				</li>
				
				<li>
					<a href="#" class="nav-top-item current">页面和区块</a>
					<ul>
						<li><a class="current" href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'write'),$_smarty_tpl);?>
">撰写新页面</a></li>
                        <li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'write'),$_smarty_tpl);?>
">撰写新区块</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'index'),$_smarty_tpl);?>
">页面管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'index'),$_smarty_tpl);?>
">区块管理</a></li>
					</ul>
				</li>
				
				<li>
					<a href="#" class="nav-top-item">设置</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_SESSION['userinfo']['uid']),$_smarty_tpl);?>
">个人信息</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'index'),$_smarty_tpl);?>
">用户和权限</a></li>
					</ul>
				</li>      
				
			</ul> <!-- End #main-nav -->
			
		</div></div> <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
						
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>编辑页面</h3>

				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
				<form id="form1" name="form1" method="post" action="<?php echo $_smarty_tpl->getVariable('formUrl')->value;?>
">
				<?php if ($_smarty_tpl->getVariable('info')->value['id']!=''){?><input id="id" type="hidden" name="id" value="<?php echo $_smarty_tpl->getVariable('info')->value['id'];?>
" /><?php }?>		
							<fieldset>
								
							  <p>
								<label>页面标题</label>
									<input class="text-input medium-input" type="text" id="medium-input" name="title" value="<?php echo $_smarty_tpl->getVariable('info')->value['title'];?>
" />
							  </p>
                                <p>
									<label>缩略名&nbsp;&nbsp;<font color="red">*</font></label>
										<input class="text-input small-input" type="text" id="slug" name="slug" value="<?php echo $_smarty_tpl->getVariable('info')->value['slug'];?>
" /> 
										<span id="exresult"></span>
								</p>
<p>
									<label>页面关键字</label>
										<input class="text-input large-input" type="text" id="large-input" name="thumb" value="<?php echo $_smarty_tpl->getVariable('info')->value['thumb'];?>
" /><br />不超过200个字，用半角;分割
								</p>

						    <p>
								  <label>
					    页面描述</label>
								  <textarea class="text-input textarea" id="textfield" name="overview" cols="79" rows="3"><?php echo $_smarty_tpl->getVariable('info')->value['overview'];?>
</textarea>
								</p>
								
								<p>
								  <label>编辑页面内容</label>
									<textarea class="text-input textarea" id="textarea" name="text" cols="79" rows="15"><?php echo $_smarty_tpl->getVariable('info')->value['text'];?>
</textarea>
							  </p>
								
								<p>
									<input class="button" type="submit" value="Submit" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
										
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->
	    <div class="clear"></div>
		<div id="footer">
			<small>
				&#169; Copyright <?php echo smarty_modifier_date_format(time(),'%Y');?>
 <a href="http://www.vecms.com/">光仪78同学会</a> | 本站用<a href="http://www.speedphp.com/">SpeedPHP v3.1.89</a>作为引擎驱动  | <a href="#">Top</a>
			</small>
		</div><!-- End #footer -->
	</div> <!-- End #main-content -->
</div></body>
</html>